/**
 * @description: 自定义指令，如下设置
 */
const directives = [
    {
        name: 'focus',
        value: {
            mounted(el: any) {
                el.focus()
            }
        }
    }
]

export default {
    install(app: any) {
        directives.forEach(directive => app.directive(directive.name, directive.value)
        )
    }
}